//
// Created by 紫霄 on 2020/4/29.
//

#ifndef LEETCODE_63_H
#define LEETCODE_63_H
class Solution {
public:
  int add(int a, int b) {
    while (b) {
      auto temp = ((unsigned int)((a & b) << 1));
      a = a ^ b;
      b = temp;
    }
    return a;
  }
};
#endif // LEETCODE_63_H
